package org.joa.manager.exception;

import org.joa.actor.ActorName;
import org.joa.actor.exception.RemoteException;
import org.joa.actor.transaction.Transaction;

public class TransactionLockTimeoutException extends RemoteException
{
   private static final long serialVersionUID = 1L;

   private ActorName actorName;

   private ActorName transactionActorName;

   public TransactionLockTimeoutException(ActorName actorName, Transaction transaction)
   {
      this.actorName = actorName;
      this.transactionActorName = transaction.getRemoteActorName();
   }

   public ActorName getActorName()
   {
      return actorName;
   }

   public ActorName getTransactionActorName()
   {
      return transactionActorName;
   }
}
